home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19990422-19990725
/
000201_news@columbia.edu _Tue Jun 22 12:33:19 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA04701
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 22 Jun 1999 12:33:12 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA21719
for kermit.misc@watsun.cc.columbia.edu; Tue, 22 Jun 1999 12:10:53 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: Reading data from COM port
Date: 22 Jun 1999 12:10:44 -0400
Organization: Columbia University
Message-ID: <7koci4$qbu@watsun.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <7ko6ct$a5d$1@nnrp1.deja.com>,
quertyq@hotmail.com <quertyq@hotmail.com> wrote:
: I have a situation where I need to hook up a PC and a report-generating
: device via a serial cable between the com ports.
:
: When the device prints a report, I need the PC ( running kermit ) to
: capture the data exactly, and output the data to a file on the PC.
:
Which Kermit program are you using?
: Now I know the procedure for log session, and stuff like that, but I
: need to write a script so this is done _unattended_. This seems to
: be a problem. I've tried to log session and it will not log the output
: until I manually connect -- no good.
:
: I have tried to "input 0 \10" to wait for the line feed to capture
: using the input buffer, but this too seems futile. The buffer
: changes the output, and the "clear input-buffer" did not solve the
: problem. Again, the integrity of the data being captured is critical
: to the other programs working.
:
I'm not sure I understand the problem you're describing. If you want to
capture and write a line at a time, you can do it like this (exact syntax
might vary, depending on Kermit program and version):
open write <filename>
if fail <do_something>
(do anything necessary to set up far end here)
while true {
clear input
input 0 \10
write file \v(input)
}
: I've worked with Kermit before, and after much bragging to my boss,
: I'm in a bit of a pickle right now. Between my boss on one shoulder,
: and the deadline on the other ... <ahem> HELP!
:
Anyway, the trick is usually something like:
(make connection)
log session <filename>
input 9999 xxxxx
where "9999" is how many seconds you want to do this for, and "xxxxx" is
either some string that will never come, or a string that, if it comes,
should terminate the logging.
- Frank